package com.miracle.设计模式.结构型模式.装饰模式.例一;


public class 装饰模式 {
    public static void main(String[] args) {
        Component p = new ConcreteComponent();
        p.operation();
        System.out.println("---------------------------------");
        Component d = new ConcreteDecorator(p);
        d.operation();
    }
}

